package com.example.demo.service;


import java.util.List;

import com.example.demo.entity.RoleAndPermission;

/**
 * @author Henry.Y
 * @date 2019-05-27
 */
public interface RoleAndPermissionService {
	
	public int insertRoleAndPermission(RoleAndPermission roleAndPermission);
	
	public int insertRoleAndPermissionByList(List<RoleAndPermission> roleAndPermissionList);

	public int deleteRoleAndPermission(RoleAndPermission roleAndPermission);
	
	public int deleteRoleAndPermissionByRoleList(List<String> roleList);
	
	public int deleteRoleAndPermissionByPermissionList(List<String> permissionList);
	
	public int updateRoleAndPermission(RoleAndPermission roleAndPermission);
	
	public RoleAndPermission selectOneRoleAndPermission(RoleAndPermission roleAndPermission);
	
	public List<RoleAndPermission> selectRoleAndPermission();
	
	public int deleteRoleAndPermissionTable();
}
